package com.njxxted.activiti.modules.process.extend.service;


import com.njxxted.activiti.common.util.PageUtil;
import com.njxxted.activiti.modules.process.extend.entity.ExtendActNodeBtnEntity;

import java.util.List;
import java.util.Map;

/**
 * 描述：节点按钮配置表 service
 * <p>
 * 作者：HuTongFu
 * 邮箱：hu_tongfu@163.com
 * 时间：2019-08-07 09:34:07
 */
public interface ExtendActNodeBtnService {

    ExtendActNodeBtnEntity queryObject(String id);

    PageUtil<ExtendActNodeBtnEntity> queryList(ExtendActNodeBtnEntity param);

    List<ExtendActNodeBtnEntity> queryListByBean(ExtendActNodeBtnEntity param);

    int save(ExtendActNodeBtnEntity extendActNodeBtnEntity);

    int update(ExtendActNodeBtnEntity extendActNodeBtnEntity);

    int delete(String id);

    int deleteBatch(String[] ids);

    /**
     * 根据条件查询节点与按钮之间的关联关系
     *
     * @param processkey 流程定义key
     * @param taskDefKey 节点id
     * @param btnId      按钮id
     * @return
     */
    Map<String, Object> findNodeBtnMembership(String processkey, String taskDefKey, String btnId);

}
